home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3860 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: trog.dra.hmg.gb!news
  2. From: sjyates@dra.hmg.gb (Steve Yates)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Changing Gadtools Gadgets
  5. Date: Mon, 19 Feb 1996 13:43:49 GMT
  6. Organization: RAF Innsworth
  7. Message-ID: <4g9v2g$7ch@trog.dra.hmg.gb>
  8. References: <50332724@river.prima.ruhr.de>
  9. Reply-To: sjyates@dra.hmg.gb
  10. NNTP-Posting-Host: 146.80.246.31
  11. X-Newsreader: Forte Free Agent v0.55
  12.  
  13. "Carsten Wich" <c_wich@river.prima.ruhr.de> wrote:
  14.  
  15. >Hi,
  16.  
  17. >I have a question regarding gadgets that have been created using
  18. >the gadtools library. Is it possible to change e.g. the text or
  19. >the text color of a button gadget after it has been displayed ?
  20. >(in an OS friendly way of course !)
  21.  
  22. >Greetings from "Irgendwo in Deutschland", Carsten
  23.  
  24. >...Niemand ist unn=FCtz, er kann immer noch als schlechtes Beispiel dienen
  25.  
  26. Yep there is a system friendly way of changing any of the tags that
  27. you pass to gadtools, I'll dig it out the RKM Manual tonight and let
  28. you know tomorrow.
  29.  
  30. I Have another problem which I don't know whether anyone would of come
  31. accross yet. Here it is.
  32.  
  33. I have created some gadgets in a window with gadtools. I want to
  34. remove them from the window and then place some new ones in there
  35. place.
  36.  
  37. There is a large problem with this though. Once created you can use
  38. the intuition routine to remove them, and then add in some more. The
  39. gad tools GT_RefreshWindow routine must then be called (according to
  40. the RKM manual). Problem is that even if you clear the relevent areas
  41. of the window during that the gadgets still exist there, you can click
  42. where they were and they would just re-appear!!!!!!
  43.  
  44. Now the RKM says in the section on Freeing Gadtools gadgets, that
  45. after you have removed the gadgets or closed the window, you must call
  46. FreeGadgets. This is so to free up any memory reserved for the
  47. gadgets. If you look that bit up in the manual it implies that you can
  48. remove gadtools gadgets from a Window.
  49.  
  50. Has anyone managed to succesfully remove it yet?
  51.  
  52. Also when trying to use the FreeGadgets routine on Gadtools gadgets
  53. removed from the window, it just simply crashes the system. With a
  54. Guru which says that it crashed due to a FreeMem problem with linked
  55. lists.
  56.  
  57. Nightmare!!!
  58.  
  59. My E-Mail address (for a short time) ICWHITING@taz.dra.hmg.gb
  60.  
  61. Ian Whiting
  62.  
  63.